#ifndef BUILDER_H
#define BUILDER_H

#include "db/qsqlrelationaltablemodelwithreconnection.h"

#include <QString>
#include <QSharedPointer>
#include <QSqlRecord>
#include <QVector>

class Builder
{
protected:
    QSharedPointer<QSqlRelationalTableModelWithReconnection> _model;
    QString _modelFilter;
    QVector<QSqlRecord> _rowRecord;
    int _globalId;

public:    
    Builder();
    virtual void setData(int globalId, QString modelFilter, QSharedPointer<QSqlRelationalTableModelWithReconnection> model);
    virtual void setData(int globalId, QVector<QSqlRecord> rowRecord);
    virtual int getGlobalId();
};

#endif // BUILDER_H
